package com.mybatis04.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author wzm
 * @create 2023-10-07 14:12
 * project_name:javaweb2308
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Student {
    private Integer id;
    private String name;
    private String no;

    //一对多 定义属性记录该学生选修的课程
    private List<Course> courseList;
}
